import React from "react";
import Index from "../components/category/Index";
import Info from "../components/category/info";

const List = [
    {
        path:'index',
        name:'Index',
        component:Index
    },
    {
        path:'info',
        name:'Info',
        component:Info
    }
];

const layout = () =>
{
    return (
        <>
            <React.Router.Outlet />
        </>
    )
}

const RouterList = [
    {
        path:'/category',
        name:'Category',
        component:layout,
        children:List
    }
];


export default RouterList;